<?php

class Reg extends Base
{
	public $username;
	public $phone;

	public function __construct($username,$phone)
	{
		$this->username = $username;
		$this->phone = $phone;
	}

	public function check()
	{
		$this->checkUsername();
		$this->checkPhone();
	}
	protected function checkPhone()
	{
		echo "检测手机:".$this->phone;
	}

	protected function checkUsername()
	{
		echo "检测用户名.".$this->username;
	}

}
